package com.coisshi.base.common.model.vo;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 通用分页返回结构
 */
@Data
@Component
public class PageResult<T> {

    private Long total;

    private List<T> list;

    public PageResult() {}

    public PageResult(Long total, List<T> list) {
        this.total = total;
        this.list = list;
    }

    public static <T> PageResult<T> of(Long total, List<T> list) {
        return new PageResult<>(total, list);
    }
} 